(use-modules
 (guix packages)
 (guix download)
 ((guix licenses) #:prefix license:)
 (guix build-system)
 (guix build-system copy)
 (gnu packages mail))

(define-public caddy
  (package
   (name "caddy")
   
   (version "2.7.6")
   
   (source
    (origin
     (method url-fetch/tarbomb)
     (uri (string-append
	   "https://github.com/caddyserver/caddy/releases/download/v" version "/caddy_" version "_linux_amd64.tar.gz"))
     (sha256
      (base32
       "08hzh824j1ffk3a8kdn72sh9z1zr06hrwg625kv0npsrgkvpqn4r"))))
   
   (build-system copy-build-system)
   
   (inputs (list mailcap))
   
   (arguments
    '(#:install-plan '(("caddy" "bin/caddy"))))
   
   (synopsis "This is a *BAD* Caddy package. It just pulls the already-built 
binary from Github, rather than building from source.")
   (description "See https://caddyserver.com/")
   (home-page "https://caddyserver.com/")
   (license license:asl2.0)))
